package com.toidep.entities;

import org.json.JSONObject;

import com.toidep.api.ParseJSON;
import com.toidep.config.Constants;

public class CityEntity {

	private String id;
	private String name;

	public CityEntity() {
		
	}
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setInfo(JSONObject jsonObject) {

		// common
		this.id = ParseJSON.getStringValue(jsonObject,
				Constants.PARAM_RESPONSE_ID);
		this.name = ParseJSON.getStringValue(jsonObject,
				Constants.PARAM_RESPONSE_NAME);
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return name;
	}
}
